Reports for WinForms | ComponentOne
C1.C1Report.4 Assembly / C1.C1Rdl Namespace / RdlEnum<T> Class / TryParse Method
A string to parse.
OUT: true if s represents an expression, false otherwise.
OUT: The enum value if isExpression is false.
OUT: expression if isExpression is true.

In This Topic
    TryParse Method (RdlEnum<T>)
    In This Topic
    Parses a string into properties of RdlEnum<T> type.
    Syntax
    'Declaration
     
    Public Shared Function TryParse( _
       ByVal s As String, _
       ByRef isExpression As Boolean, _
       ByRef value As T, _
       ByRef expression As String _
    ) As Boolean
    public static bool TryParse( 
       string s,
       out bool isExpression,
       out T value,
       out string expression
    )

    Parameters

    s
    A string to parse.
    isExpression
    OUT: true if s represents an expression, false otherwise.
    value
    OUT: The enum value if isExpression is false.
    expression
    OUT: expression if isExpression is true.

    Return Value

    true if s represents a valid RdlEnum<T> instance.
    See Also